<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('salesman/index')}">业务员列表</a></li>
			<li class="active"><a>接单量</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('salesman/edit')}">
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>姓名</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" value="{$row.name}" readonly>
				</div>
			</div>
			<div class="form-group" id="fempnumber">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>工号</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" value="{$row.fempnumber}" readonly>
				</div>
			</div>
			<div class="form-group" id="factory_id">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>业务员类型</label>
				<div class="col-md-6 col-sm-10">
					<label class="radio-inline">
						<input value="1" type="radio" name="type" <if $row.type == 1>checked</if> >内部业务员
					</label>
					<label class="radio-inline">
						<input value="2" type="radio" name="type" <if $row.type == 2>checked</if> >经销商
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>价格影响因素</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" name="yinsu" value="{$row.yinsu}">
				</div>
			</div>
			<div class="form-group" id="factory_id">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>预售功能</label>
				<div class="col-md-6 col-sm-10">
					<label class="checkbox-inline">
						<input value="1" type="checkbox" name="yushou" <if $row.yushou == 1>checked</if> >有
					</label>
				</div>
			</div>
			<div class="form-group" id="factory_id">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>订单审批</label>
				<div class="col-md-6 col-sm-10">
					<label class="radio-inline">
						<input value="1" type="radio" name="approval" <if $row.approval == 1>checked</if> >是
					</label>
					<label class="radio-inline">
						<input value="0" type="radio" name="approval" <if $row.approval == 0>checked</if> >否
					</label>
				</div>
			</div>
			<div class="form-group" id="factory_id">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>发货工厂</label>
				<div class="col-md-6 col-sm-10">
					<foreach name="factory_list" item="vo">
						<if $vo.status == 1>
							<label class="checkbox-inline">
								<input value="{$vo.id}" type="checkbox" name="out_ids[]" <if in_array($vo.id,$row.out_ids)>checked</if> >{$vo.fname}
							</label>
						</if>
					</foreach>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>出货量（每日/MT）</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" name="shipment" value="{$row.shipment}">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>出货量控制</label>
				<div class="col-md-6 col-sm-10">
					<select class="form-control" name="switch">
						<option value="1" <if $row.switch == 1>selected</if>>开</option>
						<option value="0" <if $row.switch == 0>selected</if>>关</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<input type="hidden" name="id" value="{$row.id}" />
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>